package pl.edu.agh.mr.nb.node;

import java.io.Serializable;

public class ComputationOrderMsg implements Serializable {

	private static final long serialVersionUID = 8261908907623313916L;

	public int id;
	public double cx;
	public double cy;
	public double x1;
	public double x2;
	public int nx;
	public double y1;
	public double y2;
	public int ny;
	public String clientName;
	
	public ComputationOrderMsg(ComputationOrderMsg msg) {
		this.id = msg.id;
		this.cx = msg.cx;
		this.cy = msg.cy;
		this.x1 = msg.x1;
		this.x2 = msg.x2;
		this.y1 = msg.y1;
		this.y2 = msg.y2;
		this.nx = msg.nx;
		this.ny = msg.ny;
	}
	
	public ComputationOrderMsg() {
	}
	
	public ComputationOrderMsg(double cx, double cy, double x1, double x2, double y1, double y2, int nx, int ny) {
	
		this.cx = cx;
		this.cy = cy;
		this.x1 = x1;
		this.x2 = x2;
		this.y1 = y1;
		this.y2 = y2;
		this.nx = nx;
		this.ny = ny;
		
	}
}